package com.twoke.wx.api;

import com.twoke.wx.WeChatSdkProperties;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.client.RestTemplate;

/**
 * @author TwoKe
 * @desc 微信开放api封装类
 * @date 2020/6/30
 */
public abstract class WeiXinApi {

    @Autowired
    protected RestTemplate restTemplate;

    /**
     * 微信小程序的id
     */
    protected String appid;
    /**
     * 微信小程序的秘钥
     */
    protected String secret;

    public WeiXinApi(String appid,String secret){
        this.appid = appid;
        this.secret = secret;
    }


}
